
public class StringAppend {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		StringBuffer stringadd = new StringBuffer();
		String grade = "g3";
		String CC = " 1.Child Care ";
		String HI = " 2.Health Insurance ";
		String DC = " 3.Dental Care ";
		String VA = " 4.Vacation ";
		String a ="5.401 PLAN"; 
		if(grade =="g1")
		{
			stringadd.append("Employee with " +grade+ " has ");
			stringadd.append("Salary is $5000.00");
			stringadd.append( CC );
			stringadd.append( HI );
			stringadd.append( DC );
			stringadd.append( VA );
			stringadd.append( a );
			System.out.println(stringadd.toString());
		}
		else if(grade =="g2")
		{
			stringadd.append("Salary is $4000.00");
			stringadd.append("Employee with " +grade+ " has ");
			stringadd.append(HI);
			stringadd.append(DC);
			stringadd.append(VA);
			stringadd.append(a);
			System.out.println(stringadd.toString());
		}
		else if(grade =="g3")
		{
			stringadd.append("Salary is $3000.00");
			stringadd.append("Employee with " +grade+ " has ");
			stringadd.append(DC);
			stringadd.append(VA);
			stringadd.append(a);
			System.out.println(stringadd.toString());
		}
		else if(grade =="g4")
		{
			stringadd.append("Salary is $2000.00");
			stringadd.append("Employee with " +grade+ " has ");
			stringadd.append(a);
			stringadd.append(VA);
			System.out.println(stringadd.toString());
		}
		else if(grade =="g5")
		{
			stringadd.append("Salary is $1000.00");
			stringadd.append("Employee with " +grade+ " has ");
			stringadd.append(a);
			System.out.println(stringadd.toString());
			
		}
		else
		{
			System.out.println("Employee is not eligible for nothing");
		}

	}

}
